/**
 * 
 */
package com.googlecode.iant.internal.project;

import java.util.ArrayList;
import java.util.List;

import org.springframework.core.io.Resource;

import com.googlecode.iant.project.IFolder;
import com.googlecode.iant.project.IProjectStructure;

/**
 * @author ccpascu
 *
 */
public class ProjectStructure implements IProjectStructure {

	private List<IFolder> sourceFolders = new ArrayList<IFolder>();
	private List<IFolder> testFolders = new ArrayList<IFolder>();

	public ProjectStructure(Resource resource) {
	}

	@Override
	public void addSourceFolder(IFolder folder) {
		sourceFolders.add(folder);
	}

	@Override
	public void addTestFolder(IFolder folder) {
		testFolders.add(folder);
	}

	/* (non-Javadoc)
	 * @see com.googlecode.iant.project.IProjectStructure#getSourceFolders()
	 */
	public final List<IFolder> getSourceFolders() {
		return sourceFolders;
	}

	
	/* (non-Javadoc)
	 * @see com.googlecode.iant.project.IProjectStructure#getTestFolders()
	 */
	public final List<IFolder> getTestFolders() {
		return testFolders;
	}

}
